package org.lx.nursing.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;

@Data
 @NoArgsConstructor
 @AllArgsConstructor
 @Builder
public class ElderFamilyRelation {


    private Long id;


    private Long elderId;


    private Long familyMemberId;


    private String relationType;

    private Date createTime;

    private LocalDateTime updateTime;

    private Long createBy;

    private Long updateBy;

    private String remark;

    // 如果需关联查询老人信息（可选）
    @TableField(exist = false)
    private Elder elder;

    // 如果需关联查询家属信息（可选）
    @TableField(exist = false)
    private FamilyMember familyMember;

}